import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { SharedModule } from '@shared/shared.module';
import { HttpClientModule } from '@angular/common/http';
import { DataDropDownComponent } from './data-drop-down/data-drop-down.component';
import { DataTreeComponent } from './data-tree/data-tree.component';
import { DataTreeSelectComponent } from './data-tree-select/data-tree-select.component';
import { UploadImageComponent } from './upload-image/upload-image.component';

const COMPONENTS = [
    DataDropDownComponent,
    DataTreeComponent,
    DataTreeSelectComponent,
    UploadImageComponent
];

@NgModule({
    imports: [
        CommonModule,
        FormsModule,
        HttpClientModule,
        SharedModule
    ],
    declarations: [
        ...COMPONENTS,


    ],
    exports: [
        ...COMPONENTS
    ],
    providers: [],
})
export class ComponetsModule {
    static forRoot(): ComponetsModule {
        return {
            ngModule: ComponetsModule
        };
    }
}
